eric7.Plugins.VcsPlugins.vcsMercurial.UncommitExtension.ProjectBrowserHelper
Module implementing the uncommit extension project browser helper.
Global Attributes
Classes
Functions
UncommitProjectBrowserHelper
Class implementing the uncommit extension project browser helper.
Derived from
HgExtensionProjectBrowserHelper
Class Attributes
Class Methods
Methods
Static Methods
UncommitProjectBrowserHelper (Constructor)
UncommitProjectBrowserHelper(vcsObject, browserObject, projectObject)
Constructor
- vcsObject (Hg)
-
reference to the vcs object
- browserObject (ProjectBaseBrowser)
-
reference to the project browser object
- projectObject (Project)
-
reference to the project object
UncommitProjectBrowserHelper.__hgUncommit
__hgUncommit()
Private slot to undo the effect of a local commit.
UncommitProjectBrowserHelper.__reopenProject
__reopenProject(shouldReopen, title)
Private method to reopen the project if needed and wanted.
- shouldReopen (bool)
-
flag indicating that the project should
be reopened
- title (str)
-
title of the message box
UncommitProjectBrowserHelper.initMenus
initMenus()
Public method to generate the extension menus.
- Return:
-
dictionary of populated menu. The dict must have the keys 'mainMenu',
'multiMenu', 'backMenu', 'dirMenu' and 'dirMultiMenu'.
- Return Type:
-
dict of QMenu
UncommitProjectBrowserHelper.menuTitle
menuTitle()
Public method to get the menu title.
- Return:
-
title of the menu
- Return Type:
-
str
UncommitProjectBrowserHelper.showMenu
showMenu(key, controlled)
Public method to prepare the extension menu for display.
- key (str)
-
menu key (one of 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu'
or 'dirMultiMenu')
- controlled (bool)
-
flag indicating to prepare the menu for a
version controlled entry or a non-version controlled entry